<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>

<f:subview id="header">
<h:form id="headerForm">
<h:panelGrid columns="2" styleClass="standard">
  <h:panelGroup>
    <h:graphicImage value="images/banner_logo.gif" alt="iShopPlace Demo logo" 
    	onclick="location.replace('main.jsf');"/>
  </h:panelGroup>
  <h:panelGrid columns="1" styleClass="standard" columnClasses="rightAlign">
    <h:panelGroup>
      <h:inputText value="#{searchPageBean.keywords}" size="12"/>
      <h:outputText value=""/>
      <h:commandButton value="Search" action="#{searchPageBean.searchAction}"/>
    </h:panelGroup>
    <h:panelGroup>
      <h:outputLink value="account.jsf">
        <h:outputText value="Account"/>
      </h:outputLink>
      <h:outputText value=" | "/>
      <h:outputLink value="cart.jsf">
        <h:outputText value="Cart"/>
      </h:outputLink>
      <h:outputText value=" | "/>
      <h:commandLink action="signon" rendered="#{!accountBean.loggedin}">
        <h:outputText value="Sign in"/>
      </h:commandLink>
      <h:commandLink action="#{accountBean.signoffAction}" rendered="#{accountBean.loggedin}">
	    <h:outputText value="Sign out"/>
      </h:commandLink>  
    </h:panelGroup>
  </h:panelGrid>
 </h:panelGrid>  
 </h:form>
 </f:subview> 